
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户修改</title>
</head>
<body>
<%--<%@include file="/checkLogin.jsp"%>--%>
<h1>欢迎来到虎课系统</h1>
<form method="post" action="update-${u.id}">
    <fieldset>
        <legend>用户修改</legend>
      <%--  <p>
            <label>编号</label><input type="number" name="id" value="${u.id}" readonly />
        </p>--%>
        <p>
            <label>登录名</label><input type="text" name="loginname" value="${u.loginname}" required maxlength="40" placeholder="只能由字母和数字组成" pattern="\w{2,40}"/>
        </p>
        <p>
            <label>姓名</label><input type="text" name="realname" value="${u.realname}" required placeholder="必须是汉字" pattern="[\u4e00-\u9fa5]{2,20}"/>
        </p>
        <p>
            <label>手机号</label><input type="tel" name="phone" value="${u.phone}" required placeholder="参考你的手机号" pattern="1\d{10}"/>
        </p>
        <p>
            <label>电子邮件</label><input type="email" name="email" value="${u.email}"/>
        </p>
        <%--<p>
            <label>密码</label><input type="password" name="pass"  required placeholder="必须是6位以上" pattern="\S{6,30}" maxlength="200"/>
        </p>--%>
        <p>
            <label>积分</label><input type="number" name="score" value="${u.score}" readonly/>
        </p>
        <p><label>级别:</label><input type="text" readonly name="level" value="${u.level}"/> </p>
        <p>
            <input type="submit" value="保存"/>
            <input type="reset" value="重置"/>
        </p>
    </fieldset>
</form>
</body>
</html>
